jq = jQuery.noConflict();
jq(document).ready(function() {
jq.preLoadImages("images/login/btn_lgn.png", "images/login/btn_lgn.png");
jq.preLoadImages("images/login/btn_hd.png", "images/login/btn_hd.png");
jq.preLoadImages("images/login/lgn_mdl.png", "images/login/lgn_mdl.png");
jq.preLoadImages("images/login/lgn_btm.png", "images/login/lgn_btm.png");
jq.preLoadImages("images/login/lgn_top.png", "images/login/lgn_top.png");
// Start Login Area
jq(".lgn-btn").toggle(function() {
jq(".lgn-wrp").show();
jq(this).css('backgroundPosition','0 bottom');
jq(".lgn-cnr-tl").css('backgroundPosition','0 0');
}, function() {
jq(this).css('backgroundPosition','0 top');
jq(".lgn-cnr-tl").css('backgroundPosition','0 -33px');
jq(".lgn-wrp").hide();
});
//End Login Area
var gotoURL = jq('input[name=goto]').val();
if (gotoURL) {
jq('#register-link').attr('href',jq('#register-link').attr('href')+'?goto='+gotoURL);
}
});
(function($) {
var cache = [];
// Arguments are image paths relative to the current page.
$.preLoadImages = function() {
var args_len = arguments.length;
for (var i = args_len; i--;) {
var cacheImage = document.createElement('img');
cacheImage.src = arguments[i];
cache.push(cacheImage);
}
}
})(jQuery)